
//获取banner
import httpInStance from "@/utils/http.js";
//默认为1 商品为2
export function getBannerAPI(params = {}) {
  // 默认为1 商品为2
  const { distributionSite = '1' } = params
  return httpInStance({
    url: '/home/banner',
    params: {
      distributionSite
    }
  })
}

//获取新鲜好物
export const findNewAPI = () => {
  return httpInStance({
    url: '/home/new'
  })
}
//人气推荐
export const getHotAPI = () => {
  return httpInStance({
    url: '/home/hot'
  })
}
//商品模块
export const getGoodsAPI = () => {
  return httpInStance({
    url: '/home/goods'
  })
}
